package moodish.server;

import java.net.InetAddress;
import java.net.UnknownHostException;

import moodish.comm.MoodishServerComm;
import moodish.security.ServerCommFilter;



public class ServerMain {

	public static void main(String[] args){
		try {
			InetAddress thisIp =InetAddress.getLocalHost();
			System.out.println(thisIp.getHostAddress());
		} catch (UnknownHostException e) {
			e.printStackTrace();
		}
		MoodishServerComm serverComm = new MoodishServerComm() ;
		ServerCommFilter spamFilter = new ServerCommFilter(serverComm);
		Server server = new Server();
		server.start(spamFilter);

	}
}
